package casa.depesos.app.com.http.req;


import casa.depesos.app.com.http.HttpReq;
import casa.depesos.app.com.http.Req;
import casa.depesos.app.com.http.ReqCallback;
import casa.depesos.app.com.http.bean.LoanBean;
import casa.depesos.app.com.http.parser.LoanParser;
import casa.depesos.app.com.utils.Constant;
import okhttp3.FormBody;

public class QueryLoanReq implements HttpReq<LoanBean> {
    @Override
    public void req(ReqCallback<LoanBean> callback) {//   /app/loan/queryConfirmLoan
        FormBody.Builder builder = new FormBody.Builder();
        builder.add("reqnum", Constant.getApplyId())
                .add("mobiTok", Constant.getToken());
        Req.post("/app/financial/confirmCreditApproval", getParam(), getHeader(), builder.build(), new LoanParser(), callback, this);
    }
}
